package com.afdor.rws.dtm;

import org.aspectj.lang.ProceedingJoinPoint;

/**
 * 分布式事务拦截处理接口扩展
 *
 * @author 悭梵
 * @date Created in 2018-10-12 14:11
 */
@FunctionalInterface
public interface DistributedTransactionInterceptor {

    /**
     * 事务切面的拦截方法.
     *
     * @param pjp spring事务切点
     * @return Object
     * @throws Throwable 异常
     */
    Object interceptor(ProceedingJoinPoint pjp) throws Throwable;
}
